﻿<%@ Page Language="C#" CodeFile="Inventory_List.aspx.cs" MasterPageFile="~/MasterPage.master"
    Inherits="Inventory_List" %>

<%@ Register Src="../UserControl/GridPager.ascx" TagName="GridPager" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div>
        <table id="wsd_inputtable">
            <tr>
                <td width="100%" class="tabletitle" colspan="10">搜索选项
                </td>
            </tr>
            <tr>

                <td class="tablefield">仓库:
                </td>
                <td>
                    <asp:DropDownList runat="server" ID="ddlWarehouse" Width="130" />
                </td>
                <td class="tablefield">制造商:
                </td>
                <td>
                    <asp:DropDownList runat="server" ID="ddlManu" Width="130" AutoPostBack="true" OnSelectedIndexChanged="SelectedIndexChanged">
                    </asp:DropDownList>
                </td>

                <td class="tablefield">品牌:
                </td>
                <td>
                    <asp:DropDownList runat="server" ID="ddlBrand" Width="130" OnSelectedIndexChanged="SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
                <td class="tablefield">系列:
                </td>
                <td>
                    <asp:DropDownList runat="server" ID="ddlForms" AutoPostBack="true" Width="130"
                        OnSelectedIndexChanged="SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
                <td class="tablefield">产品:
                </td>
                <td>
                    <asp:DropDownList runat="server" ID="ddlProduct" Width="130">
                    </asp:DropDownList>
                </td>
            </tr>

            <tr>

                <td class="buttonarea" colspan="8">
                    <asp:Button ID="btnQuery" runat="server" class="wsd_button2" Text="查  询" CausesValidation="false"
                        OnClick="btnQuery_Click" />
                    &nbsp;&nbsp;
                    <input type="button" class="wsd_button2" size="47" value="重  置" name="reset" onclick="clearForm('form1')" />
                </td>
            </tr>
        </table>
        <br />
        <table id="wsd_inputtable">
            <tr>
                <td class="tabletitle" width="100%">库存列表
                </td>
            </tr>
        </table>
        <table id="wsd_listtable" width="100%">
            <tr>
                <td style="width: 100%">
                    <asp:GridView Width="100%" ID="GridView" runat="server" DataKeyNames="ID" AutoGenerateColumns="false"
                        OnRowDataBound="Grid_RowDataBound" EmptyDataText="没有可显示的数据." EmptyDataRowStyle-Font-Bold="true"
                        EmptyDataRowStyle-HorizontalAlign="Center" EnableEmptyContentRender="true" AllowPaging="True"
                        PageSize="50">
                        <HeaderStyle CssClass="titlist" />
                        <EmptyDataRowStyle HorizontalAlign="Center" Font-Bold="True"></EmptyDataRowStyle>
                        <Columns>
                            <asp:BoundField HeaderText="产品代码" DataField="CODE" />
                            <asp:BoundField HeaderText="产品名称" DataField="SHORT_DESCRIPTION" />
                            <asp:BoundField HeaderText="仓库名称" DataField="DESCRIPTION" />
                            <asp:BoundField HeaderText="库存数量" DataField="QUANTITY" />
                            <asp:BoundField HeaderText="库存单位" DataField="UNIT" />
                            <asp:BoundField HeaderText="库存单价(元)" DataField="PIECE_PRICE" />
                            <asp:BoundField HeaderText="更新时间" DataField="LAST_UPDATE_TIME" />
                            <asp:TemplateField HeaderText="操作">
                                <ItemTemplate>
                                    <a href='Inventory_Out.aspx?ID=<%# Eval("ID") %>' style="font-style: normal" class="wsd_button2">出库</a>
                                    <a href='Inventory_Detail.aspx?ID=<%# Eval("PRODUCT_ID") %>&WARE_ID<%# Eval("WARE_ID") %>;' class="wsd_button2">流水帐</a>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <%--  <asp:BoundField DataField="CategoryName" HeaderText="品类" />
                            <asp:BoundField DataField="BrandName" HeaderText="品牌"  />
                            <asp:BoundField DataField="ManufactureName" HeaderText="制造商" />--%>
                            <%--<asp:BoundField DataField="PIECE_PRICE" HeaderText="支价" DataFormatString="{0:N2}" />
                            <asp:BoundField DataField="CASE_PRICE" HeaderText="箱价" DataFormatString="{0:N2}" />--%>
                        </Columns>
                        <RowStyle CssClass="evenline" />
                        <AlternatingRowStyle CssClass="oddline" />
                        <PagerSettings Visible="true" />
                    </asp:GridView>
                    <br />
                    <uc1:GridPager ID="GridPager1" runat="server" />
                </td>
            </tr>
        </table>
        <br />
        <table id="wsd_inputtable">
            <tr>
                <td width="100%" class="tabletitle">操作选项
                </td>
            </tr>
            <tr>
                <td class="buttonarea">
                    <input class="wsd_button2" onclick="location.href = 'Inventory_In.aspx';" type="button"
                        value="采购" />&nbsp;&nbsp;
                    
                </td>
            </tr>
        </table>
    </div>
</asp:Content>

